import { Routes, RouterModule }  from '@angular/router';

import { SalesComponent } from './sales.component';
import { OrderComponent } from './components/order/order.component';
import { OrderaddComponent } from './components/order/orderadd/orderadd.component';

// noinspection TypeScriptValidateTypes
const routes: Routes = [
  {
    path: '',
    component: SalesComponent,
    children: [
      { path: 'order', component: OrderComponent },
      { path: 'order/new', component: OrderaddComponent }
    ]
  }
];

export const routing = RouterModule.forChild(routes);
